package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.yupi.springbootinit.model.dto.interfaceinfo.InterfaceInfoQueryRequest;
import com.yupi.springbootinit.model.dto.interfaceinfo.InterfaceInfoUpdateRequest;
import com.yupi.springbootinit.model.entity.InterfaceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.vo.InterfaceInfoVO;

import java.util.List;

/**
* @author Calcium
* @description 针对表【interface_info(接口信息)】的数据库操作Service
* @createDate 2025-03-26 13:54:53
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    /**
     * 获取分页查询
     * @param queryRequest
     * @return
     */
    QueryWrapper<InterfaceInfo> getQueryWrapper(InterfaceInfoQueryRequest queryRequest);

    /**
     * 获取更新
     * @param updateRequest
     * @return
     */
    UpdateWrapper<InterfaceInfo> getUpdateWrapper(InterfaceInfoUpdateRequest updateRequest);

    /**
     * 转换脱敏
     * @param interfaceInfo
     * @return
     */
    InterfaceInfoVO getInterfaceInfoVO(InterfaceInfo interfaceInfo);

    /**
     * 获取脱敏接口信息列表
     * @param interfaceInfoList
     * @return
     */
    List<InterfaceInfoVO> getInterfaceInfoVOList(List<InterfaceInfo> interfaceInfoList);
}
